import request from '@/utils/request'

// 查询标准滴定溶液配制及标定记录列表
export function listStandard(query) {
  return request({
    url: '/Laboratory/standard/list',
    method: 'get',
    params: query
  })
}

// 查询标准滴定溶液配制及标定记录详细
export function getStandard(id) {
  return request({
    url: '/Laboratory/standard/' + id,
    method: 'get'
  })
}

// 新增标准滴定溶液配制及标定记录
export function addStandard(data) {
  return request({
    url: '/Laboratory/standard',
    method: 'post',
    data: data
  })
}

// 修改标准滴定溶液配制及标定记录
export function updateStandard(data) {
  return request({
    url: '/Laboratory/standard',
    method: 'put',
    data: data
  })
}
export function checkStandard(data) {
  return request({
    url: '/Laboratory/standard/check',
    method: 'put',
    data: data
  })
}
// 删除标准滴定溶液配制及标定记录
export function delStandard(id) {
  return request({
    url: '/Laboratory/standard/' + id,
    method: 'delete'
  })
}
